import EventEmitter from 'eventemitter3';

class EventHandle extends EventEmitter {
    static getInstance() {
        if (!EventHandle.instance) {
            EventHandle.instance = new EventHandle();
        }
        return EventHandle.instance;
    }

    constructor() {
        super()
    }
}

let eventHandle = EventHandle.getInstance();
window.eventHandle = eventHandle;
export default eventHandle;